package Factory_method_model.format;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class client {
    public static void main(String[] args) {
        //database
        Xml_data xml_data;
        XmlFactory factory;
        factory=new databaseFactory();
        xml_data=factory.create_xml();
        xml_data.xml();
        //excel
        Xml_data xml_data1;
        XmlFactory factory1;
        factory1=new ExcelFactory();
        xml_data1=factory1.create_xml();
        xml_data1.xml();
        //txt
        Xml_data xml_data2;
        txtFactory factory2;
        factory2=new txtFactory();
        xml_data2=factory2.create_xml();
        xml_data2.xml();
    }
}
